-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] alternative split devices #417
Conversation
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
V4L1 has been completely removed from kernel since 2.6.39.
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
With this change, output_nr will be allocated and deallocated as capture_nr is, but currently saved with no other reference to it. Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Since now both output_nr and capture_nr are meaningful, don't return either of them. Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Converting function v4l2loopback_cd2dev and v4l2loopback_getdevice searches v4l2loopback_index_idr with device number retrieved from video_device drvdata, but this could be time consuming and creates unecessary complexity. And since we may need to retrieve v4l2_loopback_device address from callbacks shared between capture and output devices, this patch reuses video_device drvdata instead of struct member offsets. Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Also use V4L2_CAP_DEVICE_CAPS to detect this instead of hardcoded kernel version. Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Since we have already instantiated an output video device, use its `num` field instead. Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Hi, I'd like to point out that |
…URE only for capture devices
89d86fc
to
2e76bec
Compare
i think #268 (comment) made it clear that joint devices is not sustainable anyhow. I'm therefore closing this wip-pr. the (for reference sake, there's another branch that keeps the original content of this PR) |
this is just an alternative branch to #359
it's main purpose is to keep the possibility for joined devices, pulling in the changes from #359 every now and then.
this PR is not very actively pursued. it's only a PR to get GitHub-actions (without changing the workflows-configuration)